﻿
package kliment.display.draw.style {
	import flash.geom.Matrix;
	
	/**
	* ...
	* @author Kliment
	*/
	public class GradientStyle {
		public var type:String;
		public var colors:Array;
		public var alphas:Array; 
		public var ratios:Array; 
		public var matrix:Matrix; 
		public var spreadMethod:String; 
		public var interpolationMethod:String; 
		public var focalPointRatio:Number;
		
		function GradientStyle(type:String, colors:Array, alphas:Array, ratios:Array, matrix:Matrix = null, spreadMethod:String = "pad", interpolationMethod:String = "rgb", focalPointRatio:Number = 0) {
			this.type = type;
			this.colors = colors;
			this.alphas = alphas;
			this.ratios = ratios;
			this.matrix = matrix;
			this.spreadMethod = spreadMethod;
			this.interpolationMethod = interpolationMethod;
			this.focalPointRatio = focalPointRatio;
		}
		
		public function clone():GradientStyle {
			return new GradientStyle(type, colors, alphas, ratios, matrix, spreadMethod, interpolationMethod, focalPointRatio);
		}
		
	}
}
